package com.xbongbong.pro.dynamic.pojo.dto;

import com.xbongbong.paas.domain.entity.ext.PaasFormDataEntityExt;
import com.xbongbong.pro.businesstage.pojo.dto.StageJumpDealDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 *阶段推进
 *
 *@author weijianxun
 */
@Setter
@Getter
@ToString
public class DynamicStageJumpDTO implements Serializable {
    private static final long serialVersionUID = -6746410175810812522L;

    private StageJumpDealDTO stageJumpDealDTO;
    private PaasFormDataEntityExt paasFormDataEntityExt;
    private String memo;

    public static DynamicStageJumpDTO initDynamicStageJumpDTO(StageJumpDealDTO stageJumpDealDTO, PaasFormDataEntityExt paasFormDataEntityExt, String memo) {
        DynamicStageJumpDTO dynamicStageJumpDTO = new DynamicStageJumpDTO();
        dynamicStageJumpDTO.setMemo(memo);
        dynamicStageJumpDTO.setStageJumpDealDTO(stageJumpDealDTO);
        dynamicStageJumpDTO.setPaasFormDataEntityExt(paasFormDataEntityExt);
        return dynamicStageJumpDTO;
    }
}
